package io.sdl.service;



import io.sdl.common.service.BaseService;
import io.sdl.entity.RoleUserEntity;

import java.util.List;

/**
 * 角色用户关系
 *
 * @author Dc
 * @email 1211734836@qq.com
 * @date 2025-04-15 15:39:38
 */
public interface RoleUserService extends BaseService<RoleUserEntity> {

    //根据用户id查询其拥有的角色
    List<RoleUserEntity> getRoleUsersByRoleId(Long userId);


    //根据角色id和用户id查询
    RoleUserEntity getRoleUserByRoleIdAndUserId(Long roleId, Long userId);


    //解绑角色
    Integer unbindRole(Long userId,long roleId);
}

